/**
 * Created by Administrator on 2017/6/9.
 */
/**
 * Created by Administrator on 2017/6/9.
 */
$(function () {
    Zepto(function($){
        var win = window,
            doc = document;

        function setFontSize() {
            var winWidth =  $(window).width();
            // 640宽度以上进行限制
            var size = (winWidth / 750) * 100;
            doc.documentElement.style.fontSize = (size < 100 ? size : 100) + 'px' ;
        };

        //防止在html未加载完毕时执行，保证获取正确的页宽
        setTimeout(function(){
            // 初始化
            setFontSize();

        }, 200);

    });

});
